package com.service;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.pojo.PassengerOrder;

public interface OrderService {
	public String insertOnePassengerOrder(PassengerOrder order);//插入一条品拼车信息
	public String insertOnePassengerOrder(PassengerOrder order, Integer user_type_id);//插入一条品拼车信息 Integer user_type_id
	public String getAllPassengerOrder(int thisUsers_id,int users_id);//得到所有拼车信息
	public String GetAllPassengerOrder(Integer user_Type_id);//得到所有发布的拼车消息
	public String carPool(Integer user_type_id,Integer here, Integer there);//拼车订单形成
	public String getThisCarPool(Integer this_users_id,Integer user_type_id);//得到当前拼车的对象
	public String endOrderByUsers_id(Integer target_users_id,Integer user_type_id,Integer this_users_id);//用户取消订单
	public String editStateToing(Integer this_user_id, Integer passengerorder_id);//上车
	public String editStateToEnd(Integer this_user_id, Integer passengerorder_id);//到达终点
	public String GetAllEndPassengerOrder(Integer user_type_id, Integer users_id);//得到完成的的订单
	public String getTargetUserByOrderId(Integer userAndPassengerOrder_id, Integer user_type_id);//根据订单得到拼车对象
	public String payMoney(Integer userAndPassengerOrder_id,float price);//结账支付
}
